package com.me.test.threadpool.xly;
/**
 * 
 * <br/> 上午11:01:10 2012-8-25
 * @Author <a href="mailto:mestudying@sina.com">Junwei Zhang</a><br/>
 **/
public class SimpleTask implements Task {
	
	private int taskID = 0;

	public SimpleTask(int id) {
		this.taskID = id;
	}

	@Override
	public void execute() {
		try {
			// 模拟任务执行
			System.out.println("-----"+ Thread.currentThread().getName() +"---execute--SimpleTask[" + this.taskID + "] Begin...");
			Thread.sleep(1000);
			System.out.println("-----"+ Thread.currentThread().getName() +"---execute--SimpleTask[" + this.taskID + "] End...");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
